package cn.wolfcode.crm.query;

import cn.wolfcode.crm.util.StringUtils;
import lombok.Getter;
import lombok.Setter;

/**
 * 员工高级查询参数对象
 *
 * @author 丧彪
 */
@Setter
@Getter
public class EmployeeQuery extends QueryObject {
    private String sort;   //排序的列
    private String order;  //排序的方式
    private String keyword; //关键查询
    private Long currentUserId = -1L;

    //select * from employee order by ?, ?
    public String getSort() {
        return StringUtils.isEmpty(sort) ? null : sort;
    }

    public String getOrder() {
        return StringUtils.isEmpty(order) ? "" : order;
    }


    public String getKeyword() {
        return StringUtils.isEmpty(keyword) ? null : keyword;
    }
}
